#include <iostream>
#include <string>
#include <list>

using namespace std;

class Todolist {

public :
    // Empty constructor
	Todolist(string name);

    // GETTER
    const string getName() const;

    // Check if toto empty
    bool empty();

    // Add a task in the todolist
	void addTask(string task);

    // Delete the task at the "position" given
	void deleteTask(int position);

    // Delete all tasks presents in the todolist
    void deleteAllTasks();

    // Save the todolist in the given filePath
    // Overwrite the file if already exists
    void save(string filePath);

    // Load a saved todolist
    void load(string filePath);

    // Display a list of all tasks contained in the todolist with the position
    void toString();
	
private:
    // The list of string containing the tasks
	list<string> todolist;
    string name;
};
